<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
table.gridtable {
	font-family: verdana, arial, sans-serif;
	font-size: 11px;
	color: #333333;
	border-width: 1px;
	border-color: #666666;
	border-collapse: collapse;
}

table.gridtable th {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #dedede;
}

table.gridtable td {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #ffffff;
}

tr:hover td {
	background: none;
}

tr:hover {
	background-color: none;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}
#myDiv { 
     top: 0px;
     right: 0;
     background-color: #f1f1f1;
     padding: 10px;
     overflow-y:auto;
   }
</style>
<meta charset="UTF-8">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/grid1.0.js"></script>
</head>
<body style="overflow:auto;">
<button id="bt1">显示选中</button>
<input type="text" id="text1">
<button id="bt2">显示指定日期评价</button>
<div id="myDiv"></div>
<script type="text/javascript">
(function(){ 
	
	function load(){
		$.ajax({
			type : "get",
			url : "${pageContext.request.contextPath}/getStockNote", 
			data:{date1:$("#date2").val()},
			dataType:'text',
			success : function(msg) {   
				$("#myDiv").html(msg);
				$("#mytalbe").addClass("gridtable");
				$('table tr').find('th:eq(6)').hide(); 
				$('table tr').find('td:eq(6)').hide(); 
				$('table tr').find('th:eq(3)').hide(); 
				$('table tr').find('td:eq(3)').hide();  
			}
		});
	}
	$("#bt1").click(function(){
		$('table tr td:nth-child(6):contains("0")').parent('tr').hide();
	});
	$("#bt2").click(function(){
		var text = $("#text1").val();
		//alert(text);
		$('table tr').not(":first-child").each(function() { 
			  var thirdCell = $(this).find('td:nth-child(8)'); 
			  if (thirdCell.text().indexOf(text) === -1) {
			      $(this).hide();
			  }
			});
	});
	load();
})();
  
</script>

</body>
</html>